package com.etc.service;

import com.etc.dao.CakeDao;
import com.etc.pojo.Cake;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杰哥
 * @Title: CakeService
 * @ProjectName myssm
 * @Description: TODO
 * @date 2019/8/212:00
 */
@Service
public class CakeService implements CakeDao {
    @Autowired
    private CakeDao cakeDao;
    @Override
    public Integer insert(Cake cake) {
        return cakeDao.insert(cake);
    }

    @Override
    public Integer deleteById(int cid) {
        return cakeDao.deleteById(cid);
    }

    @Override
    public Integer update(Cake cake) {
        return cakeDao.update(cake);
    }

    @Override
    public List<Cake> select() {
        return cakeDao.select();
    }

    @Override
    public Cake findByCid(int cid) {
        return cakeDao.findByCid(cid);
    }
}
